/*
 * @Author: liyin 2179253556@qq.com
 * @Date: 2023-12-11 11:47:32
 * @LastEditors: liyin 2179253556@qq.com
 * @LastEditTime: 2024-01-12 17:32:46
 * @FilePath: \billboard-statistics-screen\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    redirect: '/homeView',
    component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue')
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue'),
    redirect: '/homeView',
    children: [
      {
        path: '/homeView',
        name: 'HomeView',
        component: () => import(/* webpackChunkName: "home_view" */ '../components/HomeView.vue')
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
